home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 May / Macworld (1998-05).dmg / Updaters / SoftWindows 95 5.0.2 / SoftWindows Upgrade Disk / INSIGNIA / VMMPATCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-02-17  |  1.6 KB  |  61 lines

  1. rem [
  2. rem    Name:        u.vmmpatch.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        Clive Standbridge
  7. rem
  8. rem    Created on:    July 1997
  9. rem
  10. rem    Sccs ID:    @(#)u.vmmpatch.bat    1.2 10/13/97
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    Windows 95 batch file for patching the Windows 95 Vxd
  15. rem            library VMM32.VXD. This may be called during either the
  16. rem            DOS or Windows phase of the upgrade, depending on the
  17. rem            type of upgrade.
  18. rem
  19. rem    Parameters:    1    old serial number (8 hex digits)
  20. rem            2    "new" :    apply the patch for newly-installed OS only. 
  21. rem                "old" :    apply the patch for existing OS only. 
  22. rem
  23. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  24. rem ]
  25.  
  26.  
  27. REM  Determine Windows 95 OS installation state: existing or new installation?
  28. ibatch vmmOldOS = 0x%1 & 0xF000 %#lx
  29. itest 0x%1 ">=" 0xF0000000
  30. if errorlevel 1 itest "%vmmOldOS%" "<" 0x3000
  31. if errorlevel 1 goto new_%2
  32.                 goto old_%2
  33.  
  34. :new_new
  35. :old_old
  36. REM  OS install state matches the condition; do the patch.
  37.  
  38. REM Create INSPAT95.EXE in C:\INSIGNIA
  39. c:\insignia\inspatch c:\insignia\patch.pat c:\windows\wininit.exe c:\insignia\inspat95.exe    >>c:\insignia\up.log
  40.  
  41. REM If we have our Windows95 patcher we can proceed
  42. if not exist c:\insignia\inspat95.exe goto end
  43.  
  44. REM Determine which components to patch
  45. set vmmFlags=-$
  46. ver | find "4.10." >nul:
  47. if not errorlevel 1 set vmmFlags=%vmmFlags% -vmouse
  48.  
  49. REM Save and patch VMM32.VXD
  50. REM VMM / IOS / VTD / VMOUSE
  51. call patchone vmm32.vxd c:\windows\system %vmmFlags%
  52. set vmmFlags=
  53.  
  54. goto end
  55.  
  56. :new_old
  57. :old_new
  58. REM  OS install state does not match the condition; do nothing.
  59.  
  60. :end
  61.